function useAccount() {
   document.getElementById('billing-name').value = document.getElementById('first-name').value +' '+ document.getElementById('last-name').value;
   document.getElementById('billing-address').value = document.getElementById('address').value;
   document.getElementById('billing-city').value = document.getElementById('city').value;
   document.getElementById('billing-state').value = document.getElementById('state').value;
   document.getElementById('billing-zip').value = document.getElementById('zip').value;

   if( document.getElementById('select')[document.getElementById('select').selectedIndex].value != document.getElementById('country').value ) {
	   for( i=0;  document.getElementById('select').length; i++ ) {
   		if( document.getElementById('select')[i].value == document.getElementById('country').value ) {
				document.getElementById('select')[i].selected = true;
				break;
   		}
	   }
	}
}
function validateCart(){
	var mes_str="";
	if(document.getElementById('card-number').value==""){
		mes_str="Please enter card number.<br>";
	}else{
		if(isNaN(document.getElementById('card-number').value))
		mes_str="Card number mus be numberic.<br>";
	}
	
	if(document.getElementById('cvn').value==""){
		mes_str +="Card number mus be numberic.<br>";
	}
	
	if(document.getElementById('billing-name').value ==""){
		mes_str +="Please enter billing name.<br>";
	}
	
	if(document.getElementById('billing-address').value ==""){
		mes_str +="Please enter billing address.<br>";
	}
	
	if(document.getElementById('billing-city').value ==""){
		mes_str +="Please enter billing city.<br>";
	}
	
	if(document.getElementById('billing-state').value ==""){
		mes_str +="Please enter billing state.<br>";
	}
	
	if(document.getElementById('billing-zip').value ==""){
		mes_str +="Please enter billing zip.<br>";
	}
	if(mes_str !=""){
		document.getElementById('Dis_Mes').innerHTML=mes_str;
		return false;
	}else{
		return true;
	}
}
